 public static string GetCodeById(string id)
        {
            HttpWebRequest hwr = (HttpWebRequest)HttpWebRequest.Create("http://pastebin.com/" + id);
            hwr.Method = "GET";
            //hwr.KeepAlive = false;
            hwr.ImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
            hwr.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/525.13";
            HttpWebResponse res = (HttpWebResponse)hwr.GetResponse();
            StreamReader sr = new StreamReader(res.GetResponseStream());
            string html = sr.ReadToEnd();
            string qer = "<textarea id=\"code\".*?>.+?</textarea>";
            int q1 = Regex.Match(html, "<textarea id=\"code\".*?>").Length;
            MatchCollection mc = Regex.Matches(html, qer, RegexOptions.Singleline);
            string dat = mc[0].Value;
            dat = dat.Substring(q1);
            dat = dat.Remove(dat.Length - "</textarea>".Length);
            foreach (Match m in Regex.Matches(dat, "<.+?>"))
            {
                dat = dat.Replace(m.Value, "");
            }
            string dat2 = dat.Replace("&nbsp", " ").Replace("&quot;", "\"").Replace("&lt;","<").Replace("&gt;",">");
            return dat2;
        }